home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / grafik / bildanzeiger / jpegaga / jpegagasrc / jpeg / makefile.gcc.amiga < prev    next >
Makefile  |  1995-03-09  |  7KB  |  163 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # modified by Günther Röhrich for gcc on the Amiga
  4.  
  5. # NOTE: it is recommended to edit stdlib.h and set EXIT_FAILURE to 10
  6. # (this is the normal value for the Amiga)
  7.  
  8. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  9. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  10.  
  11. # Read SETUP instructions before saying "make" !!
  12.  
  13. # The name of your C compiler:
  14. CC= gcc
  15.  
  16. # You may need to adjust these cc options:
  17. CFLAGS= -O2 -fomit-frame-pointer -m68020 -msoft-float\
  18.         -DAMIGA -DTWO_FILE_COMMANDLINE -DNEED_SIGNAL_CATCHER -DSHORTxSHORT_32
  19. # In particular:
  20. #   Add -DBSD if on a pure BSD system (see jinclude.h).
  21. #   Add -DMEM_STATS to enable gathering of memory usage statistics.
  22. #   You may also want to add -DTWO_FILE_COMMANDLINE or -D switches for other
  23. #   symbols listed in jconfig.h, if you prefer not to change jconfig.h.
  24.  
  25. # Link-time cc options:
  26. LDFLAGS= 
  27.  
  28. # To link any special libraries, add the necessary -l commands here.
  29. # In particular, on some versions of HP-UX (and probably other SysV-derived
  30. # systems) there is a faster alternate malloc(3) library that you can use
  31. # by adding "-lmalloc" to this line.
  32. LDLIBS= 
  33.  
  34. # miscellaneous OS-dependent stuff
  35. # linker
  36. LN= $(CC)
  37. # file deletion command
  38. RM= rm -f
  39. # library (.a) file creation command
  40. AR= ar rc
  41. # second step in .a creation (use "touch" if not needed)
  42. AR2= ranlib
  43.  
  44.  
  45. # source files (independently compilable files)
  46. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  47.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  48.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  49.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  50.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  51.         jwrppm.c jwrrle.c jwrtarga.c
  52. # virtual source files (not present in distribution file, see SETUP)
  53. VIRTSOURCES= jmemsys.c
  54. # system-dependent implementations of virtual source files
  55. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  56.         jmemdosa.asm
  57. # files included by source files
  58. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  59. # documentation, test, and support files
  60. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  61. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  62.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  63.         makefile.bcc makefile.mms makefile.vms makvms.opt
  64. OTHERFILES= ansi2knr.c ckconfig.c example.c
  65. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  66. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  67.         $(OTHERFILES) $(TESTFILES)
  68. # objectfiles common to cjpeg and djpeg
  69. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  70. # compression objectfiles
  71. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  72.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  73.         jrdrle.o jrdtarga.o
  74. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  75. # decompression objectfiles
  76. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  77.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  78.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  79. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  80. # These objectfiles are included in libjpeg.a
  81. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  82.  
  83.  
  84. all: cjpeg djpeg
  85. # By default, libjpeg.a is not built unless you explicitly request it.
  86. # You can add libjpeg.a to the line above if you want it built by default.
  87.  
  88.  
  89. cjpeg: $(COBJECTS)
  90.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  91.  
  92. djpeg: $(DOBJECTS)
  93.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  94.  
  95. # libjpeg.a is useful if you are including the JPEG software in a larger
  96. # program; you'd include it in your link, rather than the individual modules.
  97. libjpeg.a: $(LIBOBJECTS)
  98.     $(RM) libjpeg.a
  99.     $(AR) libjpeg.a  $(LIBOBJECTS)
  100.     $(AR2) libjpeg.a
  101.  
  102. jmemsys.c:
  103.     echo You must select a system-dependent jmemsys.c file.
  104.     echo Please read the SETUP directions.
  105.     exit 1
  106.  
  107. clean:
  108.     $(RM) *.o cjpeg djpeg libjpeg.a core testout.*
  109.  
  110. distribute:
  111.     $(RM) jpegsrc.tar*
  112.     tar cvf jpegsrc.tar $(DISTFILES)
  113.     compress -v jpegsrc.tar
  114.  
  115. test: cjpeg djpeg
  116.     $(RM) testout.ppm testout.gif testout.jpg
  117.     djpeg testorig.jpg testout.ppm
  118.     djpeg -gif testorig.jpg testout.gif
  119.     cjpeg testimg.ppm testout.jpg
  120.     cmp testimg.ppm testout.ppm
  121.     cmp testimg.gif testout.gif
  122.     cmp testimg.jpg testout.jpg
  123.  
  124.  
  125. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  126. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  127. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  128. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  129. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  130. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  131. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  132. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  133. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  134. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  135. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  136. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  137. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  138. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  139. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  140. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  141. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  142. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  143. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  144. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  145. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  146. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  147. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  148. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  149. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  150. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  151. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  152. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  153. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  154. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  155. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  156. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  157. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  158. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  159. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  160. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  161. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  162. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  163.